﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="../../Content/UserPanel.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function LoginOut() {
            $.get("/Default/LoginOut.html", function (response) {
                location.reload();
            });
            return false;
        }

        
    </script>
</head>
<body>
    <%if ((bool)ViewData["IsUserLogin"])
      { %>
    <div class="UserPanel">
        <img style="border: 0" src='<%=ViewData["User_Head"].ToString()%>' />
        <span>
            <%=ViewData["User_Name"].ToString()%></span> <a href="#" onclick="return LoginOut();">
                注销</a>
    </div>
    <%}
      else
      { %>
    <div id="qqLoginBtn">
    </div>

    <script type="text/javascript">
        $(document).ready(function () {
            //插入QQ登录按钮
            QC.Login.insertButton
                                    ({
                                        btnId: 'qqLoginBtn',    //要插入QQ登录按钮的html标签，必须
                                        size: 'A_M',            //按钮样式 （A/B/C代表三种样式。S/M/L/XL代表尺寸）
                                        //包括：A_S，A_M，A_L，A_XL，B_S，B_M，B_L，C_S
                                        clientId: '100226377',    //申请时分配的appid，必须
                                        scope: 'get_user_info',            // 授权范围，可选
                                        redirectURI: 'http://new.wxblyc.com/Default/QQLoginRedirect.html'       //回调地址，可选

                                    });
        })
    </script>
    <%} %>
</body>
</html>
